#ifndef NOISEGATEWIDGET_H
#define NOISEGATEWIDGET_H

#include "noisegateucs.h"
#include "dm/dmstruct.h"


class NoiseGateWidget : public QWidget
{
    Q_OBJECT
public:
    explicit NoiseGateWidget(QWidget *parent = nullptr);
    NoiseGate getData() const;
signals:
    void stateChanged(NoiseGate);
public slots:
    void set(const NoiseGate &data);
private slots:
    void valueChanged(const int &value);
private:
    ALabel *thresholdLabel;
    ASpinBox *thresholdSpinBox;
    NoiseGateUCS *ucs;
};

#endif // NOISEGATEWIDGET_H
